package com.young.springdemo.service.commandchain;

public class ZongJingLi extends QingjiaApprove {
    public ZongJingLi(String name) {
        super(name);
    }

    @Override
    public void requestQingjia(QingjiaDetail qingjiaDetail) {
        if (qingjiaDetail.getDays() < 30 ){
            System.out.println("總經理" + this.name + "同意了" + qingjiaDetail.getName() + "的" + qingjiaDetail.getDays() +
                    "天請假申請,原因:" + qingjiaDetail.getReason());
        }else {
            System.out.println("請假天數"+qingjiaDetail.getDays()+"超過30天,不同意");
        }
    }
}
